]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
MessageTray: change height in chat notification to have more context.
authorCarlos Soriano Sánchez <carlos.soriano89@gmail.com>
Sun, 4 Nov 2012 23:06:47 +0000 (00:06 +0100)
committerAllan Day <allanpday@gmail.com>
Tue, 6 Nov 2012 21:53:28 +0000 (21:53 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=665255

data/theme/gnome-shell.css
js/ui/components/telepathyClient.js

index 843848084ccc6e1713671b44ccba0b063ea1031d..7a0a9883e7a748b34c53ccb3e9156c6ff6ee860e 100644 (file)
@@ -1432,6 +1432,10 @@ StScrollBar StButton#vhandle:active {
     padding-right: 4px;
 }
 
+.chat-notification-scrollview{
+       max-height: 22em;
+}
+
 .subscription-message {
     font-style: italic;
 }
index 4268253c41a06642b542ed11f7294d4ac67c1e19..281a6066e40b3587f2eda28ccd807c220f7fe18d 100644 (file)
@@ -779,6 +779,7 @@ const ChatNotification = new Lang.Class({
         // force a scroll to the bottom if things change while we were at the
         // bottom
         this._oldMaxScrollValue = this._scrollArea.vscroll.adjustment.value;
+        this._scrollArea.add_style_class_name('chat-notification-scrollview');
         this._scrollArea.vscroll.adjustment.connect('changed', Lang.bind(this, function(adjustment) {
             if (adjustment.value == this._oldMaxScrollValue)
                 this.scrollTo(St.Side.BOTTOM);